package functiiElementare;

import functii.Functie;
/**
 * 
 * @author Feri
 * version 1.0
 */
/**
 * This class represents the constant function
 */
public class Constanta extends Functie{
	protected double ct;
	/**
	 * 
	 * @param ct the constant variable
	 */
	public Constanta(double ct){
		this.ct=ct;
	}
	/**
	 * The implicit constructor.
	 */
	public double calcul(){
		return ct;
	}
	/**
	 * Derivation of the constant function is 0.
	 */
	public double calculDerivata(){
		return 0;
	}
	/**
	 * Returns the constant value
	 */
	public String toString(){
		return String.valueOf(ct);
	}
	@Override
	public String derivare() {
		// TODO Auto-generated method stub
		return "0";
	}
	/**
	 * 
	 * @return Returns the constant value
	 */
	public double getCt(){
		return this.ct;
	}
	@Override
	public String concatTermeni(String aux) {
		// TODO Auto-generated method stub
		return null;
	}
}
